package com.TiaoJianJiaZai;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * 作者: LCG
 * 日期: 2020/3/6 23:07
 * 描述:
 */
@Configuration
public class TestConditionConfig {


    @Conditional(MyConditional.class)
    @Bean
    public MyTest getMyTest(){
       return new MyTest();
    }

}
